//
//  WmcHomeFilterSelectView.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/7/19.
//

import UIKit

// MARK: - [WmcHomeFilterSelectView]

class WmcHomeFilterSelectView: WmcSelectView {
    override func makeUI() {
        super.makeUI()
        title = "滤镜"
        titleView.leftBtn.setImage("close".wmc_image, for: .normal)
        titleView.leftBtn.yp.addEvent { [weak self] _ in
            guard let weakSelf = self else { return }
            weakSelf.dismiss()
        }
    }
}

// MARK: - WmcAlertViewProtocol

extension WmcHomeFilterSelectView: WmcAlertViewProtocol {
    /// 显示
    func show() {
        let config: WmcPresentVC.Config =
            .basicConfig(view: self, style: .sheet(), layoutBlock: { make in
                make.left.right.bottom.equalToSuperview()
                make.height.equalToSuperview().multipliedBy(0.4)
            })
        show(config: config)
    }
}
